%10-1  ʽMļɲ֡

function f = fact(n)                       %Ķ
% Compute a factorial value.               %H1
% FACT(N) returns the factorial of N,        %ı
% usually denoted by N!
% Put simply, FACT(N) is PROD(1:N).       %ע
f = prod(1:n);                            % 
